public class ReflectClassDemo {
    public static void relectClassDemo(){
        try {
            Class<?> c1=  Class.forName("Student");
          Student student = (Student) c1.newInstance();
            System.out.println(student);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }

    }

    public static void main(String[] args) {
        relectClassDemo();
    }
}
